

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Ticket
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _EmployeeID =-1;
public System.Int64 EmployeeID
{
get { return _EmployeeID;}
set { _EmployeeID = value;}
}
System.DateTime _StartTime =DateTime.Now;
public System.DateTime StartTime
{
get { return _StartTime;}
set { _StartTime = value;}
}
System.DateTime _ModifyTime =DateTime.Now;
public System.DateTime ModifyTime
{
get { return _ModifyTime;}
set { _ModifyTime = value;}
}
System.Int64 _RequestTypeID =-1;
public System.Int64 RequestTypeID
{
get { return _RequestTypeID;}
set { _RequestTypeID = value;}
}
System.String _Title ="";
public System.String Title
{
get { return _Title;}
set { _Title = value;}
}
System.String _Details ="";
public System.String Details
{
get { return _Details;}
set { _Details = value;}
}
System.Int64 _StatusID =-1;
public System.Int64 StatusID
{
get { return _StatusID;}
set { _StatusID = value;}
}
System.Int64? _OperatorID =null;
public System.Int64? OperatorID
{
get { return _OperatorID;}
set { _OperatorID = value;}
}
System.Int64 _PeriorityID =-1;
public System.Int64 PeriorityID
{
get { return _PeriorityID;}
set { _PeriorityID = value;}
}
System.String _Note ="";
public System.String Note
{
get { return _Note;}
set { _Note = value;}
}
public Ticket()
{
}
public Ticket(System.Int64 __EmployeeID,System.DateTime __StartTime,System.DateTime __ModifyTime,System.Int64 __RequestTypeID,System.String __Title,System.String __Details,System.Int64 __StatusID,System.Int64? __OperatorID,System.Int64 __PeriorityID,System.String __Note)
{
_EmployeeID = __EmployeeID;
_StartTime = __StartTime;
_ModifyTime = __ModifyTime;
_RequestTypeID = __RequestTypeID;
_Title = __Title;
_Details = __Details;
_StatusID = __StatusID;
_OperatorID = __OperatorID;
_PeriorityID = __PeriorityID;
_Note = __Note;
}
public Ticket(System.Int64 __ID,System.Int64 __EmployeeID,System.DateTime __StartTime,System.DateTime __ModifyTime,System.Int64 __RequestTypeID,System.String __Title,System.String __Details,System.Int64 __StatusID,System.Int64? __OperatorID,System.Int64 __PeriorityID,System.String __Note)
{
_ID = __ID;
_EmployeeID = __EmployeeID;
_StartTime = __StartTime;
_ModifyTime = __ModifyTime;
_RequestTypeID = __RequestTypeID;
_Title = __Title;
_Details = __Details;
_StatusID = __StatusID;
_OperatorID = __OperatorID;
_PeriorityID = __PeriorityID;
_Note = __Note;
}


             public override bool Equals(object obj)
         {
             if (obj is Ticket)
             {
                 Ticket newObj = (Ticket)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
